import * as actionTypes from './constants';

const defaultState = {
  inputValue: '123'
}

export default (state = defaultState, action) => {
  switch (action.type) {
    case actionTypes.CHANGE_INPUT_VALUE:
      return { ...state, inputValue: action.payload };
    default:
      return state;
  }
};